Rakovica is a village in central-eastern Bosnia and Herzegovina, located west of Ilidža and Sarajevo on the local road towards Kiseljak.
Population was 2,721 in the 1991 census: 45% Bosniaks, 42% Serbs, 9% Croats and 3% Yugoslavs. Post war population consists of 90% Bosniaks, 7% Croats, and 3% Serbs.